<template>
  <div>
    <div style="margin-left:1000px;margin-top:100px">
      <!-- 数据完成度 -->
      <div class="first">
        <div class="lTriangle"></div>
        <div class="title">数据完成度</div>
        <div class="rTriangle"></div>
      </div>
      <div class="second">
        <div class="secondDiv" v-for="(p, i) of list" :key="i" @click="toLook">
          <div class="icon"></div>
          <div class="secondDivTitle">{{ p.cityName }}</div>
          <div class="secondDivNum">{{ p.num }}</div>
        </div>
      </div>
    </div>
    <!-- 弹出框 -->
    <zc :popup="popup" style="margin-left:-100px; margin-top:-460px"></zc>
  </div>
</template>

<script>
import zc from "./zc.vue";
import bj from "./bj.vue";
import qt from "./qt.vue";
import xs from "./xs.vue";
import lp from "./lp.vue";
import yh from "./yh.vue";
import fy from "./fy.vue";
import la from "./la.vue";
import jd from "./jd.vue";
import tlx from "./tlx.vue";
import cax from "./cax.vue";
export default {
  components: {
    zc,
    bj,
    qt,
    xs,
    lp,
    yh,
    fy,
    la,
    jd,
    tlx,
    cax,
  },
  data() {
    return {
      popup: false,
      list: [
        {
          lid: 1,
          cityName: "主城区(城投)",
          num: 15,
        },
        {
          lid: 2,
          cityName: "滨江区",
          num: 10,
        },
        {
          lid: 3,
          cityName: "钱塘区",
          num: 9,
        },
        {
          lid: 4,
          cityName: "萧山区",
          num: 8,
        },
        {
          lid: 5,
          cityName: "临平区",
          num: 7,
        },
        {
          lid: 6,
          cityName: "余杭区",
          num: 6,
        },
        {
          lid: 7,
          cityName: "富阳区",
          num: 5,
        },
        {
          lid: 8,
          cityName: "临安区",
          num: 4,
        },
        {
          lid: 9,
          cityName: "建德市",
          num: 3,
        },
        {
          lid: 10,
          cityName: "桐庐县",
          num: 2,
        },
        {
          lid: 11,
          cityName: "淳安县",
          num: 1,
        },
      ],
    };
  },

  methods: {
    toLook() {
      this.popup = true;
      console.log(this.popup);
    },
    closed(){
      this.popup=false
    }
  },
};
</script>

<style>
.first {
  width: 340px;
  height: 40px;
  background-image: linear-gradient(
    270deg,
    rgba(0, 98, 162, 0) 0%,
    rgba(0, 98, 162, 0.7) 50%,
    rgba(0, 98, 162, 0) 100%
  );
  display: flex;
  flex-shrink: 0;
}
.lTriangle {
  width: 0;
  height: 0;
  border: 8px;
  border-style: solid;
  border-color: transparent transparent transparent#44ebff;
  margin-left: 20px;
  margin-top: 12px;
}
.title {
  width: 90px;
  height: 25px;
  font-family: PingFangSC-Medium;
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 9px #0086ff;
  font-weight: 500;
  margin-left: 80px;
  margin-top: 8px;
}
.rTriangle {
  width: 0;
  height: 0;
  border: 8px;
  border-style: solid;
  border-color: transparent #44ebff transparent transparent;
  margin-left: 100px;
  margin-top: 12px;
}
.second {
  width: 340px;
  height: 419px;
  background: rgba(0, 98, 162, 0.1);
  border-radius: 3px;
}
.secondDiv {
  width: 310px;
  height: 34px;
  background-image: linear-gradient(
    270deg,
    rgba(0, 206, 255, 0) 0%,
    rgba(0, 206, 255, 0.18) 100%
  );
  margin-top: 3px;
  margin-left: 15px;
  margin-bottom: 1px;
  display: flex;
  cursor: pointer;
}

.icon {
  width: 2px;
  height: 34px;
  background: #00ceff;
}

.secondDivTitle {
  margin-left: 15px;
  margin-top: 7px;
  width: 80px;
  height: 20px;
  font-family: PingFangSC-Medium;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0;
  font-weight: 500;
}
.secondDivNum {
  width: 11px;
  height: 25px;
  font-family: PingFangSC-Medium;
  font-size: 18px;
  color: #00ceff;
  letter-spacing: 0;
  text-align: right;
  font-weight: 500;
  margin-left: 186px;
  margin-top: 7px;
}
</style>
